<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "set_product_commission".
 *
 * @property int $id
 * @property int $product_id
 * @property float $use_score 可以使用多少联娱券
 * @property float $ticket 送多少定向券
 * @property float $use_ticket 金额+多少定向券购买
 * @property float $need_ticket 需要的定向券
 */
class SetProductCommission extends \yii\db\ActiveRecord
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return 'set_product_commission';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['product_id'], 'integer'],
            [['use_score', 'ticket', 'use_ticket', 'need_ticket'], 'number'],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'product_id' => 'Product ID',
            'use_score' => 'Use Score',
            'ticket' => 'Ticket',
            'use_ticket' => 'Use Ticket',
        ];
    }
}
